import { addProcedureTaskToTemplate } from '../order/ProductionOrder'

const productionOrderOwnerName='production_order'
const productionOrderBomTableName = "production_order_bom";
const camelOwnerName='ProductionOrder'

export function changeProductionOrderTemplateFlag(domain,alias){
    const sa= {
        alias: alias|"changeProductionOrderTemplateFlag",
        ownerName: productionOrderOwnerName,
        beanName: 'changeProductionOrderTemplateFlag',
        domain: domain
    }
    return sa
}

export function updateProductionOrderSyncAction(domain,alias){
    const sa= {
        alias: alias|"updateProductionOrder",
        ownerName: productionOrderOwnerName,
        beanName: 'updateProductionOrder',
        domain: domain
    }
    return sa

}

export function reorderAndPreviousAndNextNode(domain,alias){
    const sa= {
        alias: alias|"reorderAndPreviousAndNextNode",
        ownerName: productionOrderOwnerName,
        beanName: 'reorderAndPreviousAndNextNode',
        domain: domain
    }
    return sa

}

export function addProcedureTaskToTemplateSyncAction(domain,alias){
    const sa= {
        alias: alias|"addProcedureTaskToTemplate",
        ownerName: productionOrderOwnerName,
        beanName: 'addProcedureTaskToTemplate',
        domain: domain
    }
    return sa
}


export function updateTargetBomSyncAction(domain,alias){
    const sa= {
        alias: alias|"updateTargetBom",
        ownerName: productionOrderBomTableName,
        beanName: 'updateTargetBom',
        domain: domain
    }
    return sa
}

export function recalculationProductionOrderPlanQuantityByTargetBomSyncAction(domain,alias){
    const sa= {
        alias: alias|"recalculationProductionOrderPlanQuantityByTargetBom",
        ownerName: productionOrderOwnerName,
        beanName: 'recalculationProductionOrderPlanQuantityByTargetBom',
        domain: domain
    }
    return sa
}
